package com.stox.charting.ui.swing.presenter.delegate.painter.chart;

import java.awt.Graphics2D;
import java.util.List;

import com.stox.charting.ui.swing.model.Chart;
import com.stox.charting.ui.swing.model.ChartModel;
import com.stox.charting.ui.swing.model.ChartType;
import com.stox.core.model.IBar;

public class LineChartPainter implements ChartPainter {

	@Override
	public ChartType getSupportedChartType() {
		return ChartType.LINE;
	}

	
	@Override
	@SuppressWarnings("unchecked")
	public void paint(Graphics2D g, Chart chart, int width, int height) {
		ChartModel<? extends IBar> chartModel = (ChartModel<? extends IBar>)chart.getModel();
		List<? extends IBar> bars = chartModel.getData().subList(chartModel.getEndIndex(), chartModel.getStartIndex());
		
	}

}
